minios: do not expose #define current to applications
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 27 Oct 2008 18:51:52 +0000 (18:51 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 27 Oct 2008 18:51:52 +0000 (18:51 +0000)
commit7a0db9514bfd797ebc59ae79cb167c43048f1b95
tree78d617f0525a15dc78929cb3b72ce4d50426a925
parent9fe166283800326486fb8ce9c1966727905d2092
minios: do not expose #define current to applications

Currently the minios headers do this:
 #define current get_current()
Obviously when porting general code to this environment, this can
cause problems !

The attached patch arranges for this only to be done if
 #define __MINIOS__
is declared, which is set up by the makefile in extras/mini-os.

Suppressing the namespace pollution is necessary to get recent
upstream qemu's to compile, since they (quite properly) use `current'
as an ordinary identifier.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
extras/mini-os/Makefile
extras/mini-os/include/sched.h
extras/mini-os/include/wait.h